﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CommonSharedProject
{
    /// <summary>
    /// 收到数据
    /// </summary>
    public class PipeEventArgs: EventArgs
    {
        /// <summary>
        /// 接收到的字节
        /// </summary>
        public byte[] Bytes { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public int Length { get; set; }
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="bytes"></param>
        /// <param name="length"></param>
        public PipeEventArgs(byte[] bytes, int length)
        {
            Bytes = bytes;
            Length = length;
        }
    }
}
